package com.hospital.pharmacy.controller;

import com.hospital.pharmacy.service.MedicineTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/*
 * @program: Hospital
 * @description: 药品类型controller
 * @author: 杨曼珍
 * @create: 2019-01-05 16:16
 */

@Controller
@RequestMapping(value = "/medicine_type")
public class MedicineTypeController {
    @Autowired
    MedicineTypeService medicineTypeService;

    @RequestMapping(value = "/all",produces = "application/json;charset=utf-8",method = RequestMethod.GET)
    @ResponseBody
    public String getAllMedType(){
        return medicineTypeService.getAllMedicineType();
    }
}
